package org.csu.chatserver.service;

import org.csu.chatserver.entity.pojo.Room;
import java.util.List;

public interface RoomService {
    // 创建房间
    boolean createRoom(String roomName);
    
    // 获取房间信息
    Room getRoomById(Integer roomId);
    
    // 获取所有房间
    List<Room> getAllRooms();
    
    // 加入房间
    boolean joinRoom(Integer roomId, String username);
    
    // 离开房间
    boolean leaveRoom(Integer roomId, String username);
    
    // 检查用户是否在房间中
    boolean isUserInRoom(Integer roomId, String username);
    
    // 获取房间成员
    List<String> getRoomMembers(Integer roomId);

    public boolean deleteRoom(Integer roomId);
}